﻿<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../static/lib/html5shiv.js" th:src="@{/static/lib/html5shiv.js}"></script>
    <script type="text/javascript" src="../static/lib/respond.min.js" th:src="@{/static/lib/respond.min.js}"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../static/lib/jquery-select2/select2.min.css" th:href="@{/static/lib/jquery-select2/select2.min.css}"/>
    <link rel="stylesheet" type="text/css" href="../static/lib/bootstrap/css/bootstrap.min.css" th:href="@{/static/lib/bootstrap/css/bootstrap.min.css}"/>
    <link rel="stylesheet" type="text/css" href="../static/RT/css/H-ui.admin.css" th:href="@{/static/RT/css/H-ui.admin.css}"/>
    <link rel="stylesheet" type="text/css" href="../static/lib/Hui-iconfont/1.0.8/iconfont.css" th:href="@{/static/lib/Hui-iconfont/1.0.8/iconfont.css}"/>
    <link rel="stylesheet" type="text/css" href="../static/RT/skin/green/skin.css" id="skin" th:href="@{/static/RT/skin/green/skin.css}"/>
    <link rel="stylesheet" href="../static/RT/font/iconfont.css" th:href="@{/static/RT/font/iconfont.css}">
    <link rel="stylesheet" href="../static/lib/zTree/v3/css/metroStyle/metroStyle.css" th:href="@{/static/lib/zTree/v3/css/metroStyle/metroStyle.css}">
    <link rel="stylesheet" type="text/css" href="../static/lib/bootstrap-table/bootstrap-table.css" th:href="@{/static/lib/bootstrap-table/bootstrap-table.css}"/>
    <link rel="stylesheet" type="text/css" href="../static/lib/webuploader/0.1.5/webuploader.css" th:href="@{/static/lib/webuploader/0.1.5/webuploader.css}"/>
    <link rel="stylesheet" type="text/css" href="../static/lib/fileinput/fileinput.min.css" th:href="@{/static/lib/fileinput/fileinput.min.css}"/>
    <link rel="stylesheet" type="text/css" href="../static/lib/bootstrap-validator/css/bootstrapvalidator.min.css" th:href="@{/static/lib/bootstrap-validator/css/bootstrapvalidator.min.css}"/>

    <!--[if IE 6]>
    <script type="text/javascript" src="../static/lib/DD_belatedPNG_0.0.8a-min.js" th:src="@{/static/lib/DD_belatedPNG_0.0.8a-min.js}"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->

    <title>麦迪斯洗车后台管理系统</title>
</head>
<body>
<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container-fluid cl"><a class="logo navbar-logo f-l mr-10 hidden-xs" href="page/index">麦迪斯洗车后台管理系统</a>
            <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="javascript:;">麦迪斯洗车管理系统</a>
            <span class="logo navbar-slogan f-l mr-10 hidden-xs"></span>
            <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                <ul class="cl">
                    <li style="right:5px" id="role"></li>
                    <li class="dropDown dropDown_hover">
                        <a class="dropDown_A">
                            <input style="display: none;" th:value="${user.bizId}" id="index-bizId" />
                            <!--<input style="display: none;" th:value="${user.bizType}" id="index-bizType" />-->
                            <sapn th:text="${user.userName}">XXX</sapn>
                            <i class="Hui-iconfont">&#xe6d5;</i>
                        </a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;" onClick="myselfinfo()">修改密码</a></li>
                            <li><a onclick="logout()">切换账户</a></li>
                            <li><a onclick="logout()">退出</a></li>
                        </ul>
                    </li>
                    <li id="Hui-msg">
                        <a onclick="thanks()" title="消息">
                            <span class="badge badge-danger">3</span>
                            <i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i>
                        </a>
                    </li>
                    <li id="Hui-skin" class="dropDown right dropDown_hover">
                        <a href="javascript:;" class="dropDown_A" title="换肤">
                            <i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i>
                        </a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;" data-val="green" title="默认（绿色）">默认（绿色）</a></li>
                            <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                            <li><a href="javascript:;" data-val="black" title="黑色">黑色</a></li>
                            <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                            <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                            <li><a href="javascript:;" data-val="orange" title="其他">其他</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>

<div class="Hui-aside">
    <div class="menu_dropdown bk_2">
        <dl id="menu-article" th:each="parent,rowStat:${menuList}">
            <dt>
                <i class="Hui-iconfont" th:text="${parent.icon}">&#xe616;</i>
                <span th:text="${parent.menuTitle}">基础配置</span>
                <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li th:each="child,rowStat:${parent.children}">
                        <a th:attr="data-href=${child.menuUrl},data-title=${child.menuTitle}" th:text="${child.menuTitle}" data-href="platform/basic/card.html" data-title="办卡配置"
                           href="javascript:void(0)">办卡配置</a>
                    </li>
                </ul>
            </dd>
        </dl>

        <!--<dl>
            <dt><i class="Hui-iconfont">&#xe616;</i> 基础配置<i class="Hui-iconfont menu_dropdown-aaccount.html;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="platform/basic/card.html" data-title=merchant.html"javascript:void(0)">办卡配置</a></li>
                    <li><a data-href="platform/basic/activity.htmmerchant.htmle="活动配置" href="javascript:void(0)">活动配置</a></li>
                    <li><a data-href="platform/basic/advertising.html" data-title="广告管理" href="javascript:void(0)">广告管理</a></li>
                    <li><a data-href="platform/basic/service.html" data-title="服务类型配置" href="javascript:void(0)">服务类型配置</a></li>
                    <li><a data-href="platform/basic/directTrain.html" data-title="直通车配置" href="javascript:void(0)">直通车配置</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe613;</i> 商户管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="platform/merchant/merchant.html" data-title="商户信息" href="javascript:void(0)">商户信息</a></li>
                    <li><a data-href="platform/merchant/staffManage.html" data-title="技师查询" href="javascript:void(0)">技师查询</a></li>
               &lt;!&ndash;     <li><a data-href="platform/merchant/orderQuery.html" data-title="订单查询" href="javascript:void(0)">订单查询</a></li>
                    <li><a data-href="platform/merchant/cardQuery.html" data-title="办卡查询" href="javascript:void(0)">办卡查询</a></li>
                    <li><a data-href="platform/merchant/accountQuery.html" data-title="流水查询" href="javascript:void(0)">流水查询</a></li>&ndash;&gt;
                    <li><a data-href="platform/merchant/query.html" data-title="活动查询" href="javascript:void(0)">活动查询</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe620;</i> 会员管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="platform/client/clientQuery.html" data-title="客户查询" href="javascript:void(0)">客户查询</a></li>
                    <li><a data-href="platform/client/orderQuery.html" data-title="客户订单查询" href="javascript:;">客户订单查询</a></li>
                    <li><a data-href="platform/client/cardQuery.html" data-title="客户办卡查询" href="javascript:void(0)">客户办卡查询</a></li>
                    <li><a data-href="platform/client/accountQuery.html" data-title="客户流水查询" href="javascript:void(0)">客户流水查询</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe622;</i> 服务管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="platform/service/complaint.html" data-title="投诉建议" href="javascript:void(0)">投诉建议</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe62d;</i> 系统管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    &lt;!&ndash;<li><a data-href="platform/system/admin.html" data-title="管理员列表" href="javascript:void(0)">管理员账号</a></li>&ndash;&gt;
                    &lt;!&ndash;<li><a data-href="platform/system/role.html" data-title="商户角色管理" href="javascript:void(0)">商户角色管理</a></li>&ndash;&gt;
                    <li><a data-href="platform/system/rolePlatform.html" data-title="平台角色管理" href="javascript:void(0)">平台角色管理</a></li>
                    <li><a data-href="platform/system/authority.html" data-title="权限管理" href="javascript:void(0)">权限管理</a></li>
                </ul>
            </dd>
        </dl>
    </div>
    <div class="menu_dropdown bk_2" style="display:none">
        <dl>
            <dt><i class="Hui-iconfont">&#xe616;</i> 基础配置<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="merchant/basic/card.html" data-title="办卡配置" href="javascript:void(0)">办卡配置</a></li>
                    <li><a data-href="merchant/basic/activity.html" data-title="活动配置" href="javascript:void(0)">活动配置</a></li>
                    <li><a data-href="merchant/basic/service.html" data-title="服务项目配置" href="javascript:void(0)">服务类型配置</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe613;</i> 商户管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="merchant/merchant/information.html" data-title="商户信息维护" href="javascript:void(0)">商户信息维护</a></li>
                    <li><a data-href="merchant/merchant/account.html" data-title="商户账户管理" href="javascript:void(0)">商户账户管理</a></li>
                    <li><a data-href="merchant/merchant/card.html" data-title="办卡管理" href="javascript:void(0)">办卡管理</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe620;</i> 技师管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="merchant/staff/staffManagement.html" data-title="技师信息管理" href="javascript:void(0)">技师信息管理</a></li>
                    <li><a data-href="merchant/staff/pushMoney.html" data-title="技师提成配置" href="javascript:void(0)">技师提成配置</a></li>
                    <li><a data-href="merchant/staff/performance.html" data-title="技师业绩查询" href="javascript:void(0)">技师业绩查询</a></li>
                    <li><a data-href="merchant/staff/orderQuery.html" data-title="技师订单查询" href="javascript:;">技师订单查询</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe622;</i> 门店管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="merchant/store/manage.html" data-title="门店信息配置" href="javascript:void(0)">门店信息配置</a></li>
                    <li><a data-href="merchant/store/order.html" data-title="门店订单" href="javascript:void(0)">门店订单</a></li>
                    <li><a data-href="merchant/store/account.html" data-title="门店流水" href="javascript:void(0)">门店流水</a></li>
                    <li><a data-href="merchant/store/appointmentQuery.html" data-title="门店预约查询" href="javascript:;">门店预约查询</a></li>
                    <li><a data-href="merchant/store/consumableQuery.html" data-title="门店耗材查询" href="javascript:void(0)">门店耗材查询</a></li>
                    <li><a data-href="merchant/store/APAuditor.html" data-title="门店耗材采购审核" href="javascript:;">门店耗材采购审核</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe62d;</i> 会员管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="merchant/member/memberQuery.html" data-title="商户会员查询" href="javascript:void(0)">商户会员查询</a></li>
                    <li><a data-href="merchant/member/cardQuery.html" data-title="会员办卡查询" href="javascript:void(0)">会员办卡查询</a></li>
                    <li><a data-href="merchant/member/accountQuery.html" data-title="会员消费查询" href="javascript:void(0)">会员消费查询</a></li>
                    <li><a data-href="merchant/member/orderQuery.html" data-title="会员订单查询" href="javascript:void(0)">会员订单查询</a></li>

                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe6ce;</i>裂变营销<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="merchant/marketing/marketing.html" data-title="裂变营销" href="javascript:void(0)">裂变营销配置</a></li>
                </ul>
            </dd>
        </dl>
        <dl>
            <dt><i class="Hui-iconfont">&#xe62d;</i> 系统管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="merchant/system/role.html" data-title="商户角色管理" href="javascript:void(0)">商户角色管理</a></li>
                    <li><a data-href="merchant/system/authority.html" data-title="权限管理" href="javascript:void(0)">权限管理</a></li>
                </ul>
            </dd>
        </dl>-->
    </div>
</div>
<div class="dislpayArrow hidden-xs">
    <a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a>
</div>
<div class="Hui-article-box">
    <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
        <div class="Hui-tabNav-wp">
            <ul id="min_title_list" class="acrossTab cl">
                <li class="active">
                    <span title="我的桌面" data-href="page/welcome">我的桌面</span>
                    <em></em>
                </li>
            </ul>
        </div>
        <div class="Hui-tabNav-more btn-group">
            <a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;">
                <i class="Hui-iconfont">&#xe6d4;</i>
            </a>
            <a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;">
                <i class="Hui-iconfont">&#xe6d7;</i>
            </a>
        </div>
    </div>
    <div id="iframe_box" class="Hui-article">
        <div class="show_iframe">
            <div style="display:none" class="loading"></div>
            <div class="wu-iframe" data-src="page/welcomeMerchant" style="height: 100%;"></div>
        </div>
    </div>
</div>

<div class="contextMenu" id="Huiadminmenu">
    <ul>
        <li id="closethis">关闭当前</li>
        <li id="closeall">关闭全部</li>
    </ul>
</div>
<!--地图-->
<script src="http://api.map.baidu.com/getscript?v=2.0&ak=tzKGNCCIB9A45rQQxNidn1PaFpOnpe7e&services=&t=20180102152545"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/AreaRestriction/1.2/src/AreaRestriction_min.js"></script>

<script type="text/javascript" src="../static/lib/jquery/jquery-3.2.0.js" th:src="@{/static/lib/jquery/jquery-3.2.0.js}"></script>
<script type="text/javascript" src="../static/lib/bootstrap/js/bootstrap.min.js" th:src="@{/static//lib/bootstrap/js/bootstrap.min.js}"></script>
<script type="text/javascript" src="../static/lib/template-web.js" th:src="@{/static//lib/template-web.js}"></script>
<script type="text/javascript" src="../static/lib/My97DatePicker/4.8/WdatePicker.js" th:src="@{/static/lib/My97DatePicker/4.8/WdatePicker.js}"></script>
<script type="text/javascript" src="../static/lib/layer/2.4/layer.js" th:src="@{/static/lib/layer/2.4/layer.js}"></script>
<script type="text/javascript" src="../static/RT/js/H-ui.admin.js" th:src="@{/static/RT/js/H-ui.admin.js}"></script>
<script type="text/javascript" src="../static/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js" th:src="@{/static/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js}"></script>
<script type="text/javascript" src="../static/lib/jquery.contextmenu/jquery.contextmenu.r2.js" th:src="@{/static/lib/jquery.contextmenu/jquery.contextmenu.r2.js}"></script><!--设置右键-->
<script type="text/javascript" src="../static/lib/bootstrap-table/bootstrap-table.js" th:src="@{/static/lib/bootstrap-table/bootstrap-table.js}"></script>
<script type="text/javascript" src="../static/lib/bootstrap-table/bootstrap-table-zh-CN.js" th:src="@{/static/lib/bootstrap-table/bootstrap-table-zh-CN.js}"></script>
<script type="text/javascript" src="../static/lib/jquery-select2/select2.full.min.js" th:src="@{/static/lib/jquery-select2/select2.full.min.js}"></script>
<script type="text/javascript" src="../static/lib/jquery-select2/zh-CN.js" th:src="@{/static/lib/jquery-select2/zh-CN.js}"></script>
<script type="text/javascript" src="../static/lib/bootstrap-validator/js/bootstrapvalidator.min.js" th:src="@{/static/lib/bootstrap-validator/js/bootstrapvalidator.min.js}"></script>
<!--eChart-->
<script type="text/javascript" src="../static/lib/echarts/echarts.min.js" th:src="@{/static/lib/echarts/echarts.min.js}"></script>

<script type="text/javascript" src="../static/lib/webuploader/0.1.5/webuploader.min.js" th:src="@{/static/lib/webuploader/0.1.5/webuploader.min.js}"></script>
<script src="../static/lib/fileinput/fileinput.js" th:src="@{/static/lib/fileinput/fileinput.js}"></script>
<script src="../static/lib/fileinput/locales/zh.js" th:src="@{/static/lib/fileinput/locales/zh.js}"></script>

<script src="../static/RT/js/Function.js" th:src="@{/static/RT/js/Function.js}"></script>
<script type="text/javascript">
    $(function () {
        $("body").Huitab({
            tabBar: ".navbar-wrapper .navbar-levelone",
            tabCon: ".Hui-aside .menu_dropdown",
            className: "current",
            index: 0
        });
        //查询角色类型
        $.ajax({
            type: "get",
            url: "menu/getRoleType",
            dataType: "json",
            success: function (json) {
                if(json.state){
                    //放入sessionStorage，商户ID
                    sessionStorage.setItem("bizId", $("#index-bizId").val());
//                    //放入sessionStorage，是否是管理者
//                    sessionStorage.setItem("bizType", $("#index-bizType").val());
                    if(json.data == 1){
                        $(".wu-iframe").load('welcomePlatform.html');
                    }else {
                        $(".wu-iframe").load('welcomeMerchant.html');
                    }
                }else {
                    alert("error");
                }

            },
            error: function () {
                alert("error");
            }
        });

    });

    /*个人信息*/
    function myselfinfo() {
        layer.open({
            type: 1,
            area: ['300px', '200px'],
            fix: false, //不固定
            maxmin: true,
            shade: 0.4,
            title: '修改密码',
            content: '<div>&nbsp;&nbsp;&nbsp;&nbsp;旧密码：<input type="password" id="oldPwd" /><br/><br/>' +
            '&nbsp;&nbsp;&nbsp;&nbsp;新密码：<input type="password" id="pwd1" /><br/><br/>' +
            '确认密码：<input type="password" id="pwd2" /><br/><br/>' +
            '<input onclick="subPwd()" type="button" value="确认修改"/></div>'
        });
    }

    function subPwd() {
        $.ajax({
            type: "GET",
            url: "biz/subPwd",
            dataType: "json",
            data: {
                "oldPwd": $("#oldPwd").val(),
                "pwd1": $("#pwd1").val(),
                "pwd2": $("#pwd2").val()
            },
            success: function (data) {
                if (data.state) {
                    alert(data.message);
                    window.location = "signOut";
                }else {
                    alert(data.message);
                }
            },
            fail: function () {
                alert("error");
            }
    })
    }

    function logout() {
        window.location = "signOut";
    }

    /*thanks（）*/
    function thanks() {
        layer.open({
            title: '邮箱',
            type: 2,
            skin: 'layui-layer-rim', //加上边框
            area: ['525px', '300px'], //宽高
            content: ['thanks-pic.html', 'yes']
        });
    }
    function pageRefreshFun(){
        $('.fixed-table-toolbar .btn-default').click(function(){
            var title=$(this).prop("title");
            if(title=="刷新"){
                $("input").val("");
            }
        });
    }
</script>
</body>
</html>